<?php
class Account
{
	protected $id, $username, $password, $email, $permissions;
	protected $profile;
	function __construct($username = '', $password = '')
	{
		if($username != '' && $password != '')
		{
			if($this->login($username, $password) === true)
			{
				
			}
			else
			{
				
			}
		}
		$this->refresh_profile();
	}
	public function refresh_profile()
	{
		unset($this->profile);
		$this->profile = (isset($this->id)) ? new Profile($this->id) : null;
	}
	public function login($username = '', $password = '')
	{
		if($username == '' && $password == '')
			return false;
		
	}
}
?>